# src/config/CMakeLists.txt

# 添加包含目录
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)

# 查找源文件
file(GLOB CONFIG_SOURCES
    "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
)

# 添加静态库目标
add_library(config STATIC ${CONFIG_SOURCES})
target_include_directories(
    config 
    PRIVATE ${CMAKE_SOURCE_DIR}/src/
    PRIVATE ${CMAKE_SOURCE_DIR}/src/dto
    PRIVATE ${CMAKE_SOURCE_DIR}/src/utils/include
    )
# 链接依赖库
target_link_libraries(config PRIVATE 
    nlohmann_json::nlohmann_json utils
)
